libxl: add query function for backend support by device model
authorJuergen Gross <jgross@suse.com>
Wed, 30 Mar 2016 10:45:10 +0000 (12:45 +0200)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 6 Apr 2016 13:58:02 +0000 (14:58 +0100)
commitc5add9942846620514deab7fc56de5114108f7b1
treedfe81c4004c98ed836219d96d49db8eabe73de05
parent7e82b37173d1a1820e91b591201ae0bd5efd2a1d
libxl: add query function for backend support by device model

Add a function to query whether the device model is supporting a
specific backend type. The device model is writing the supported
backend types to Xenstore on startup. The new query function checks
for the appropriate entry to be present.

As not all versions of qemu are capable to indicate support of
specific backends the query function is to be called with an indicator
whether the default return value should be "supported" (in case qemu
doesn't know set any support information) or "not supported".

Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
docs/misc/xenstore-paths.markdown
tools/libxl/libxl_dm.c
tools/libxl/libxl_internal.h